package com.xx.pmis.services;

import java.util.List;

import com.xx.pmis.model.Book;

public interface BookService {
	public void saveOrUpdateBook(Book book) throws Exception;
	public void saveBook(Book book) throws Exception;
	public void deleteBook(Book book) throws Exception;
	// 根据图书ID查询该图书
	public Book getBookByBookID(String bookID) throws Exception;    
	// 查询所有图书
	public List<Book> getAllBookByCondition(String hql) throws Exception;
	// 查询所有图书，分页显示
	public List<Book> getAllBookByConditionByPage(String hql, int currentPage, int lineSize) throws Exception;
	// 图书数
	public int getCountOfBookByCondition(String hql) throws Exception;


}
